@extends('layouts.back_stage')
@section('content')
    <link rel="stylesheet" href="{{env('CDN_DOMAIN_NAME')}}/css/parameters.css?v=1.0.1">
    <link rel="stylesheet" href="{{env('CDN_DOMAIN_NAME')}}/css/dateSelect.css">
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/dateSelect.js"></script>
    <div class="container" >
        <div class="parameter-btn">
            <h3 style="float:left;">业务参数</h3>
            <a class="btn-a" href="/admin/craft_code">工艺名称</a>
            <a class="btn-a" href="javascript:;" style="background:#27c24c;">销售季节</a>
            <a class="btn-a" href="/admin/sizeSetting">尺码组设置</a>
            <a class="btn-a" href="/admin/Operation">品牌设置</a>
        </div>
        <ul class="parameter-ul">
            {{--销售季节--}}
            <li id="climate" class="parameter-li">
                <div class="season-choose">
                    <span>共<span class="in_count info_sum">{{$seasons_count}}</span>条信息</span>
                    <a class="btn bt_a btn-primary" href="javascript:;" onclick="addSeason()">添加</a>
                </div>
                <div class="season_tab">
                    <table class="season" border="1" cellspacing="0" cellpadding="0">
                        <tr><td>销售季节</td><td>销售季节代码</td><td>退货截止日期</td><td>操作</td></tr>
                        @foreach($seasons as $k => $v)
                            <tr class="sea_{{ $v->id }}">
                                <td class='season-name'>{{ $v->name }}</td>
                                <td class='season-coding'>{{ $v->code }}</td>
                                <td class='season-data'>
                                @if($v->stop_at == '0000-00-00')
                                    @else
                                        {{$v->stop_at}}
                                    @endif
                                </td>
                                <td>
                                    <a href="javascript:;" onclick="amendSeason({{ $v->id }})">修改</a>
                                    <a href="javascript:;" onclick="delSeason({{ $v->id }})">删除</a>
                                </td>
                            </tr>
                        @endforeach
                    </table>
                    <span style="float: right;"><div style="float: right;margin:20px 0;">
                <button class="btn btn-info" onclick="returnPage()" style="float:right;">跳转</button>
                <input type="text" class="form-control returnPage" style="width:6rem;float: right;margin:0 5px;">
            </div>{{$seasons->links()}}</span>
                </div>
            </li>
        </ul>
    </div>
    {{--遮罩层--}}
    <div class="mask" style="display:none;"></div>
    {{--销售季节弹框--}}
    <div class="sell" style="display:none;">
        <div class="sell_header">
            <span>添加信息</span>
            <button class="shut3 shut">×</button>
        </div>
        <div class="popup_center">
            <input class="popup_inp np1 sell_inp season_inp" maxlength="15" type="text" autocomplete="off" autocorrect="off" placeholder="销售季节(必)" />
        </div>
        <div class="popup_center">
            <input class="popup_inp np2 sell_inp season_inp" maxlength="10" type="text" autocomplete="off" autocorrect="off" placeholder="销售季节代码(必)" />
        </div>
        <div class="popup_center">
            <input id="date1" class="popup_inp np3 sell_inp season_inp" type="text" readonly placeholder="退货截止日期" />
        </div>
        <div class="popup_bottom">
            <button class="popup_btn">确定</button>
        </div>
    </div>
    <script>
        /*日期插件初始化*/
        $("#date1").dateSelect();
    </script>
    <script src="{{env('CDN_DOMAIN_NAME')}}/js/parameters.js?v=1.0.2"></script>
@endsection



